package wwl.lsf;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Application {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext annotationConfigApplicationContext =
				new AnnotationConfigApplicationContext();
		annotationConfigApplicationContext.register(Appconfig.class);
		annotationConfigApplicationContext.refresh();
		Dao bean = annotationConfigApplicationContext.getBean(Dao.class);
		System.out.println("bean = " + bean);
	}

}

